﻿<%@ Page Language="C#" Async="true" AutoEventWireup="true" CodeBehind="PartyOrgBranchEdit.aspx.cs" Inherits="SysManage.Module.Org.PartyOrgBranchEidt" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" runat="server">
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSave" ValidateForms="Form2" Icon="SystemSave" Hidden="true"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存">
                        </f:Button>
                        <f:Button ID="btnSaveClose" ValidateForms="Form2" Icon="SystemSaveClose"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>
                <f:TabStrip ID="TabStrip1" ShowBorder="false" TabPosition="Top" AutoScroll="false"
                    EnableTabCloseMenu="false" ActiveTabIndex="0" Margin="0 auto" BodyPadding="2px"
                    runat="server">
                    <Tabs>
                        <f:Tab Title="基础信息" BodyPadding="5px" Layout="VBox"
                            runat="server">
                            <Items>
                                <f:Form BodyPadding="5px" ID="Form2"
                                    runat="server" Title="" ShowBorder="false" ShowHeader="false">
                                    <Rows>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtBranchName" LabelAlign="right" runat="server" Label="组织名称" Required="true" ShowRedStar="true">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow runat="server" ID="frParentBranch" Hidden="false">
                                            <Items>
                                                <f:TriggerBoxPicker Label="父级组织" LabelAlign="right"
                                                    EnableTrigger1PostBack="false" ShowTrigger1="true"
                                                    ShowTrigger2="true" Trigger1Icon="Clear"
                                                    runat="server" ID="ppParentBranch" ShowRedStar="true" Required="true"
                                                    EnableEdit="false"
                                                    WindinsTitle="选择父级组织"
                                                    WindinsHeight="450px"
                                                    WindinsWidth="700px" WindinsUrl="../../../Share/Picker/BranchSinglePicker.aspx">
                                                </f:TriggerBoxPicker>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:DropDownList ID="ddlBranchMark" Label="组织标志"
                                                    LabelAlign="right" runat="server" Required="true" ShowRedStar="true">
                                                </f:DropDownList>
                                                <f:DropDownList ID="ddlBranchType" Label="组织类型" AutoPostBack="true" OnSelectedIndexChanged="ddlBranchType_SelectedIndexChanged"
                                                    LabelAlign="right" runat="server">
                                                </f:DropDownList>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtXPoint" runat="server" LabelAlign="right" Label="经度" ShowRedStar="true" Required="true">
                                                </f:TextBox>
                                                <f:TextBox ID="txtYPoint" runat="server" LabelAlign="right" Label="纬度" ShowRedStar="true" Required="true">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>

                                        <f:FormRow runat="server" ID="frTwoNew" Hidden="true">
                                            <Items>
                                                <f:DropDownList ID="ddlSocialParty" Label="“两新”类型"
                                                    LabelAlign="right" runat="server" Required="true" ShowRedStar="true">
                                                </f:DropDownList>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtLinkMan" runat="server" LabelAlign="right" Label="联系人" ShowRedStar="true" Required="true">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtLinkPhone" runat="server" LabelAlign="right" Label="联系电话" ShowRedStar="true" Required="true">
                                                </f:TextBox>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TriggerBoxPicker Label="组织管理员" LabelAlign="right"
                                                    runat="server" ID="ppBranchAdmin"
                                                    EnableTrigger1PostBack="false" ShowTrigger1="true"
                                                    ShowTrigger2="true" Trigger1Icon="Clear"
                                                    EnableEdit="false" WindinsTitle="选择组织管理员"
                                                    WindinsHeight="500px"
                                                    WindinsWidth="750px" WindinsUrl="../../../Share/Picker/MemberMultiplePicker.aspx">
                                                </f:TriggerBoxPicker>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextBox ID="txtPartyWorker" Readonly="true" LabelAlign="right" runat="server" Label="党务工作者">
                                                </f:TextBox>

                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextArea ID="txtAddress" Label="地址" LabelAlign="right" runat="server">
                                                </f:TextArea>
                                            </Items>
                                        </f:FormRow>
                                        <f:FormRow>
                                            <Items>
                                                <f:TextArea ID="txtDescription" Label="组织简介" LabelAlign="right" runat="server">
                                                </f:TextArea>
                                            </Items>
                                        </f:FormRow>

                                    </Rows>
                                </f:Form>
                            </Items>
                        </f:Tab>
                        <f:Tab Title="组织图片设置" BodyPadding="5px" runat="server" Layout="VBox">
                            <Items>

                                <f:Panel ID="Panel33" ShowBorder="false" ShowHeader="false" runat="server" Layout="VBox" BoxConfigAlign="Center"
                                    BoxConfigPosition="Center" BoxConfigChildMargin="0 0 5 0" BodyPadding="5">
                                    <Toolbars>
                                        <f:Toolbar ID="Toolbar4" runat="server" Position="Top" ToolbarAlign="Center">
                                            <Items>
                                                <f:FileUpload runat="server" ID="filePhoto" ShowRedStar="false"
                                                    ButtonText="上传组织图片" ButtonOnly="true" Required="false" ButtonIcon="ImageAdd"
                                                    AutoPostBack="true" OnFileSelected="filePhoto_FileSelected">
                                                </f:FileUpload>
                                            </Items>
                                        </f:Toolbar>
                                    </Toolbars>
                                    <Items>
                                        <f:Panel ID="Panel2" BoxFlex="1" MinHeight="300px" Margin="0"
                                            runat="server" BodyPadding="5px" ShowBorder="false" ShowHeader="false">
                                            <Items>
                                                <f:Image ID="imgPhoto" ImageUrl="~/Content/icon/blank1.png" Width="300px" runat="server">
                                                </f:Image>
                                            </Items>
                                        </f:Panel>
                                    </Items>
                                </f:Panel>
                                <f:HiddenField Text="" ID="hdFileId" runat="server"></f:HiddenField>
                            </Items>
                        </f:Tab>
                    </Tabs>
                </f:TabStrip>
            </Items>
        </f:Panel>
    </form>
</body>
</html>
<script>

    var panel1ClientID = '<%= Panel33.ClientID %>';

    F.ready(function () {

        window.setTimeout(function () {

            F(panel1ClientID).doLayout();
        }, 100);

    });

    function ReDoLayout() {

        var panel1ClientID = '<%= Panel33.ClientID %>';

        F.ready(function () {

            window.setTimeout(function () {

                F(panel1ClientID).doLayout();
            }, 100);

        });
    }

</script>
